import request from '@/utils/request';
import { HaiKangQuery } from './types';
import { AxiosPromise } from 'axios';

export const previewURLs = (query: HaiKangQuery): AxiosPromise<string> =>
  request({
    url: '/largescreen/api/artemis/previewURLs',
    method: 'get',
    params: query
  });
export const getVideoUrl = (query): AxiosPromise<string> =>
  request({
    url: '/largescreen/api/largeScree/getVideoUrl',
    method: 'get',
    params: query
  });

//云台操作接口
export function controlling(query) {
  return request({
    url: '/largescreen/api/artemis/controlling',
    method: 'get',
    params: query
  });
}
// 能源视联平台直播地址
export function liveAddr(query) {
  return request({
    url: `/largescreen/api/artemis/sdses/liveaddr`,
    method: 'get',
    params: query
  });
}
